//
//  BQAdsView.m
//  Adorable_Things
//
//  Created by ybq on 16/1/11.
//  Copyright © 2016年 Banana Inc. All rights reserved.
//

#import "BQAdsView.h"

@implementation BQAdsView

/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

- (instancetype)initWithFrame:(CGRect)frame {
    self = [super initWithFrame:frame];
    if (self) {
        _missionCenterButton = [UIButton buttonWithType:(UIButtonTypeCustom)];
        _missionCenterButton.layer.cornerRadius = 5;
        _missionCenterButton.layer.masksToBounds = YES;
        _missionCenterButton.frame = CGRectMake(15, kWidth / 2.27 + 15, (kWidth - 45) / 2, kWidth / 6.25);
        [_missionCenterButton setImage:[UIImage imageNamed:@"taskCenter"] forState:(UIControlStateNormal)];
        [self addSubview:_missionCenterButton];
        
        _welfareButton = [UIButton buttonWithType:(UIButtonTypeCustom)];
        _welfareButton.layer.cornerRadius = 5;
        _welfareButton.layer.masksToBounds = YES;
        _welfareButton.frame = CGRectMake(kWidth - 15 - (kWidth - 45) / 2, kWidth / 2.27 + 15, (kWidth - 45) / 2, kWidth / 6.25);
        [_welfareButton setImage:[UIImage imageNamed:@"welfare"] forState:(UIControlStateNormal)];
        [self addSubview:_welfareButton];
    }
    return self;
}

@end
